﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
					xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
					xmlns:vmf="clr-namespace:SmartCardClient.ViewModels.Features"
					xmlns:vf="clr-namespace:SmartCardClient.Views.Features">
	<DataTemplate DataType="{x:Type vmf:RawApduViewModel}">
		<vf:RawApduView/>
	</DataTemplate>
	
	<DataTemplate x:Key="TitledTabItem">
		<DockPanel Width="120">
			<ContentPresenter Content="{Binding Path=FeatureName}" VerticalAlignment="Center"/>
		</DockPanel>
	</DataTemplate>
	
	<DataTemplate x:Key="FeaturesTemplate">
		<TabControl
			IsSynchronizedWithCurrentItem="True"
			ItemsSource="{Binding}"
			ItemTemplate="{StaticResource TitledTabItem}"
			Margin="4"/>
	</DataTemplate>
</ResourceDictionary>